//
//  CCApp.m
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-10-28.
//  Copyright 2010 cc_team. All rights reserved.
//

#ifdef	__OBJC__
#import <UIKit/UIKit.h>
#import "CCApp.h"
#include <stdlib.h>
	
//获得应用程序指针
UIApplication *getApp()
{
	return [UIApplication sharedApplication];
}

//获得应用程序代理对象指针
id<UIApplicationDelegate> getAppDelegate()
{
	UIApplication *app = getApp();
	return [app delegate];
}

// 获取程序状态
UIApplicationState getAppState()
{
	return [[UIApplication sharedApplication] applicationState];
}

// 退出应用程序
void terminateApp(int exitCode)
{
	exit(exitCode);
}

#endif	//__OBJC__